package br.edu.faeterjrio.controle;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;


@Controller
@RequestMapping("/services")
public class Services {

	// headers = { "Accept=application/html, text/xml, application/json" }
	@RequestMapping(value = "alo", method = RequestMethod.GET)
	public @ResponseBody String AloMundo() {
		return "alomundo";
	}
	
	@RequestMapping("/requisicao")
	public ModelAndView Requisicao() {
		return new ModelAndView ("requisicao");
	}
	
	
	
}
